<template>
	<view>
		<button @click="goRsd()">刷新</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onPullDownRefresh() {
			console.log("onPullDownRefresh 开始刷新");
			//网络请求
			
			setTimeout(()=>{console.log("onPullDownRefresh 刷新结束");
				uni.stopPullDownRefresh();
			},2000)
		},
		methods: {
			goRsd(){
			uni.stopPullDownRefresh({
				success(){
					
				},
				fail
			})
			}
		}
	}
</script>

<style>

</style>
